package com.generic.potential.type.demo1;

import java.util.ArrayList;
import java.util.List;

import com.generic.potential.type.applylist.SimpleQueue;

public class Test {

	public static void main(String[] args) {
		List<Contract> cons = new ArrayList<Contract>();
		Fill.fill(cons, Contract.class, 3);
		Fill.fill(cons, TitleTransfer.class, 3);
		for (Contract c : cons) {
			System.out.println(c);
		}

		SimpleQueue<Contract> cons2 = new SimpleQueue<Contract>();
		// 因为SimpleQueue没有实现Collection接口，尽管SimpleQueue有add方法
		// Fill.fill(cons2, Contract.class, 3);
	}

}
